
import { Request } from '../utils/request';

/**
 * 发送邮箱验证码
 * @param email 邮箱
 * @returns
 */
export function sendVerifyCode(email: string) {
  return Request.axiosInstance({
    url: '/email/send_verify_code',
    method: 'post',
    data: { email }
  })
}

/**
 * 验证邮箱验证码
 * @param email 邮箱
 * @param verifyCode 验证码
 * @returns
 */
export function checkVerifyCode(email: string, verifyCode: string) {
  return Request.axiosInstance({
    url: '/ email / check_verify_code',
    method: 'post',
    data: { email, verifyCode }
  })
}
